package cn.yunyichina.provider.base.utils;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

/**
 * Created by 15-AK on 2017/8/31.
 */
public class NewPaltformHospitalCodeMap {
    public static  final Map<String ,String> newPaltformHospitalCodeMap = new HashMap<String ,String>();
    private static final NewPaltformHospitalCodeMap config = new NewPaltformHospitalCodeMap();

    private NewPaltformHospitalCodeMap() {

    }
    public static NewPaltformHospitalCodeMap getConfig() {
        return config;
    }

    public void  initHttpConfig() throws Exception {
        InputStream is = NewPaltformHospitalCodeMap.class.getClassLoader().getResourceAsStream("conf/newPlatFormHospitalCode.properties");
        Properties pro = new Properties();
        pro.load(is);

        Iterator it=pro.entrySet().iterator();
        while(it.hasNext()){
            Map.Entry entry=(Map.Entry)it.next();
            String key = (String)entry.getKey();
            String value = (String)entry.getValue();

            newPaltformHospitalCodeMap.put(key,value);
        }
    }

    public static void  main(String args[])throws Exception{


        System.out.println(newPaltformHospitalCodeMap.get("lczyy"));
    }
}
